import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import {
  Tabbar,
  TabbarItem,
  Icon,
  Search,
  NavBar,
  Row,
  Col,
  Form,
  Popup,
  Field,
  Picker,
  Button,
  Toast,
  Swipe,
  SwipeItem,
  Cell,
  CellGroup,
  Badge,
  PullRefresh,
  Tag,
  Grid,
  GridItem,
  Image,
  Uploader,
  Skeleton,
  Image as VanImage,
  Divider,
  Tab,
  Tabs,
  ContactList,
  ContactEdit,
  Card,
  RadioGroup,
  Radio,
  Checkbox,
  CheckboxGroup,
  ShareSheet,
  Empty,
  List,
  Overlay ,
  Lazyload
} from "vant";
import "./assets/font/iconfont.css";
// 加载全局样式
import "./assets/styles/index.scss";

// 加载动态设置REM基准值
import "amfe-flexible";

Vue.use(ShareSheet);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Icon);
Vue.use(Search);
Vue.use(NavBar);
Vue.use(Row);
Vue.use(Col);
Vue.use(Form);
Vue.use(Popup);
Vue.use(Field);
Vue.use(Picker);
Vue.use(Button);
Vue.use(Toast);
Vue.use(Search);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Row);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Badge);
Vue.use(PullRefresh);
Vue.use(Tag);
Vue.use(Grid);
Vue.use(Image);
Vue.use(GridItem);
Vue.use(Form);
Vue.use(Uploader);
Vue.use(Skeleton);
Vue.use(VanImage);
Vue.use(Divider);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(ContactList);
Vue.use(ContactEdit);
Vue.use(Card);
Vue.use(Radio);
Vue.use(RadioGroup);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Empty);
Vue.use(ShareSheet);
Vue.use(List);
Vue.use(Overlay);
Vue.use(Lazyload);
Vue.use(Lazyload, {
  lazyComponent: true,
});
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount("#app");
